import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import route from './router/index.js'

import { createPinia } from 'pinia'
// 生成环境打包的时候将这行注释掉即可，并注意修改http/index.js中的baseUrl
// import './mock/index.js'

// 引入自定义的样式
import './assets/css/common.css' 

const app = createApp(App)
app.use(ElementPlus)
app.use(route)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

const pinia = createPinia()
app.use(pinia)

app.mount('#app')
